<template>
	<view class="codiv">
		<view>
			<view class="mycontent" v-for="(item, index) in result" :key="index">
				<view class="listdivd">
					<view class="sanjiao"><uni-icons type="star-filled" color="LightSeaGreen" size="22"></uni-icons><label class="lab">{{item.academyName}}</label></view>
				</view>
			</view>
		</view>
	</view>
</template>

	<script>
		export default {
			data() {
				return {
					result: [],
				};
			},
			mounted() {
				this.getDate();
			},
			methods: {
				getDate() {
					uni.request({
						url: 'https://backendth.flymi.top/academy',
						method: 'GET',
						data: {},
						success: res => {
							this.result = res.data.data;
						},
						fail: () => {},
						complete: () => {}
					});
				}
			}
	
		}
	</script>

<style>
	.codiv{
		 border-radius: 10px;
		 margin-top: 2px;
	}
	.listdiv{
		display: flex;
		border-bottom: 2px darkgrey solid;
		align-items: center;
		height: 40px;
		font-weight: bolder;
	}
	.sanjiao{
		font-family:'宋体';
		color:black;
	}
	.zhuxiao{
		color:black;
		font-family:'宋体';
	}
	.listdivd{
		display: flex;
		align-items: center;
		height: 40px;
		margin-left: 15px;
		font-size: 20px;
	}
	.mycontent{
		background-color:white;
		background-color: rgba(255, 255, 255, 0.7);
		margin-top: 1px;
		border-radius: 10px;
	}
	.lab{
		margin-left: 5px;
	}
</style>